package com.citywy.service.impl;

import com.citywy.dao.AccountDao;
import com.citywy.dao.impl.AccountDaoImpl;
import com.citywy.service.AccountService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 业务层实现类
 */
public class AccountServiceImpl implements AccountService {
    public AccountServiceImpl() {
        System.out.println("实例化了AccountServiceImpl");
    }

    public void saveAccount() {
        AccountDao accountDao= new AccountDaoImpl();
        accountDao.saveAccount();
    }
}
